-
Notifications
You must be signed in to change notification settings - Fork 39
fix(#741): Added the ability to install the eoc package using flake.nix #743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
morphqdd
wants to merge
25
commits into
objectionary:master
Choose a base branch
from
morphqdd:741
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
@yegor256 take a look, please |
This commit introduces a flake.nix file to build and package the eoc command-line tool. It defines the package and application for multiple systems using nixpkgs.
This commit refactors the flake.nix file to improve the structure and readability of the package and app definitions. It introduces a named `eoc` derivation within the `packages` definition.
The empty line was causing issues with some tools that parse the file. Removing it resolves these issues.
npm is not needed as a native build input since it is included in nodejs.
The echo command in the buildPhase was unnecessary as npm install already provides sufficient output.
This commit introduces node2nix to manage node dependencies, simplifying the build process and improving reproducibility. It replaces the manual npm commands with a more declarative approach.
This allows node2nix to access local files when building the package.
This change refactors the flake.nix file to use import instead of callPackage when calling the node2nix package. This improves modularity and readability.
The source path was pointing to the wrong directory, causing the build to fail. This commit fixes the source path to point to the correct directory.
…ake.nix This change simplifies the flake.nix file by using `callPackage` instead of manually importing the `nix/default.nix` file. This makes the code more concise and easier to read.
This change ensures that the node2nix packages are imported with the nixpkgs context, resolving potential build issues.
This change updates the nodejs version used in the nix environment to version 18. This ensures compatibility with newer dependencies and libraries.
This change upgrades the nodejs version used in the nix environment to version 24. This ensures we are using a supported and up-to-date version of nodejs.
This commit packages eolang as a Nix derivation, enabling reproducible builds and easy installation. The derivation includes build and install phases to manage dependencies and create the executable. The old node2nix files are no longer needed.
…g build Prevents potential build issues and ensures a more predictable build process by disabling script execution during `npm install`.
This change updates the flake.nix to use `buildNpmPackage` for building the eolang package, simplifying the build process and improving dependency management.
The symlink pointed to a specific version which broke the build.
…nagement This change refactors the flake.nix file to use `importNpmLock` for managing npm dependencies. This ensures that the project uses consistent versions of dependencies, improving reproducibility. Additionally, it fixes/improves the CLI entrypoint.
The 'result' symlink was pointing to a Nix store path, which is not portable and breaks the repository outside of the Nix environment. Removing it ensures the repository is functional without Nix.
This commit ensures consistent formatting in the package.json file by applying standard indentation and spacing.
This commit adds instructions on how to install EOLANG using Nix flakes, providing flexibility and reproducibility for development environments.
…ples Corrected "intall" to "install" and added more comprehensive Nix examples for different use cases.
This commit adds SPDX headers to the flake.nix file for license compliance and clarity.
The flake.lock file was missing in REUSE.toml. Adding it to ensure license compatibility checks are correctly performed for this file. Fix: Add meta information to flake.nix Adds description, homepage, license, and author information to the flake.nix file for better package discoverability and clarity.
The previous version of flake.nix had a formatting issue that caused an error during evaluation. This commit fixes that.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pr adds
flake.nixfor installingeocvia the nix package manager.It also adds
flake.lockto freeze the versions of nix tools used for installation and updatesREUSE.tomlto ignore the presence of license headers inflake.lock, as it is generated automatically and contains only meta information for building, similar topackage.lock.json.README.mdhas also been updated, and a new way to download via nix has been added.